﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SmartBlast.GUI
{
    public partial class frmConnectServer : Form
    {
        private DataBase_BUS databaseBUS;
        public frmConnectServer()
        {
            InitializeComponent();
            databaseBUS = DataBase_BUS.getInstance();
        }

        private void frmConnectServer_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {

            databaseBUS.makeConnection(textBoxServerName.Text);
            frmLogin login = new frmLogin(this);
            login.Show();
            this.Hide();
        }

        private void frmConnectServer_Load_1(object sender, EventArgs e)
        {

        }

        private void frmConnectServer_FormClosed(object sender, FormClosedEventArgs e)
        {
            
        }


    }
}
